package com.wn.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public abstract class RbacManagerDao {
    @Select("select * from mall_user where id = #{id}")
    public abstract Map<String,Object> findOne(int id);
    @Select("select * from mall_user")
    public abstract List<Map<String, Object>> findAll();
    @Insert("insert into mall_user (account,password,status) values(#{account},#{password},#{status})")
    public abstract Integer save(Map<String, String> manager);
}
